package vy.org.app.page.vidhyarthi;

import org.vy.dal.dao.VyVidhyarthiDO;

public class VidhyarthiDOAssembler {

	private static VidhyarthiDOAssembler vidhyarthiDOAssembler = new VidhyarthiDOAssembler();

	public static VidhyarthiDOAssembler getAssembler() {
		return vidhyarthiDOAssembler;
	}

	public static VyVidhyarthiDO createVidhyarthiDO(VidhyarthiForm vidhyarthiForm) {
		VyVidhyarthiDO vidhyarthiDO = new VyVidhyarthiDO();

		vidhyarthiDO.setVyId(vidhyarthiForm.getVidhyarthiId());
		vidhyarthiDO.setVidhyalayaName(vidhyarthiForm.getVidhyalayaName());
		vidhyarthiDO.setBatchFrom(vidhyarthiForm.getYearf());
		vidhyarthiDO.setBatchTo(vidhyarthiForm.getYeart());
		vidhyarthiDO.setBatchNo(Long.parseLong(vidhyarthiForm.getBatchNo()));
		vidhyarthiDO.setRankScore(vidhyarthiForm.getRank());

		return vidhyarthiDO;

	}
}
